package com.gxa.modules.app.hospitalization.persional.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.modules.app.hospitalization.persional.dto.PatientAddDate;
import com.gxa.modules.model.entity.fee.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName Patient
 * @Description
 * @Author Mr.YUAN
 * @Date 2022/11/12 11:24
 */
@Mapper
public interface PatientMapper extends BaseMapper<Patient> {

    //根据登陆id查询对应的所有就诊人
    List<Patient> selectAllById(Integer id);
    //更新就诊人
    void update(@Param("patientAddDate") PatientAddDate patientAddDate);

    //添加
    void addPatient(@Param("patientAddDate") PatientAddDate patientAddDate);

    Patient queryById(Integer patientId);

    void updateStatus(@Param("id") Integer id);
}